package IO;

import java.io.*;
import java.nio.charset.StandardCharsets;

public class ISRDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("osw.txt");
        InputStreamReader isr = new InputStreamReader(fis, StandardCharsets.UTF_8);
//        int reading = isr.read();
//        System.out.println((char)reading);
        int reading;
        while ((reading = isr.read())!=-1){
            System.out.print((char)reading);
        }
        isr.close();
    }
}
